######################################################################################
#
# This file was provided as part of the SharePoint Mystery Deployment package
# Created by Christopher Kimbell (http://sharepointmystery.com)
#
######################################################################################

# -----------------------------------------------------------------
#
# This is a sample file representing the settings for one environment
#
# -----------------------------------------------------------------

# read values passed from the outside
param ($app, $cmd)

$currentApp = $app
$currentCmd = $cmd

# -----------------------------------------------------------------
# Environment specific values
# -----------------------------------------------------------------

# load standard settings
. .\MGL.Settings.ps1

# -----------------------------------------------------------------
# Environment information for farm
# -----------------------------------------------------------------
$farm.TimerAccount = "sp2010\spFarm"
$farm.DeploymentAccount = "sp2010\administrator"
$farm.Servers = @("THESERVER")
$farm.CreateDatabases = $true
$farm.CreateDatabaseFolders = $true
$farm.RegisterSPN = $true
$farm.IISRoot = "C:\WebApps"
$farm.DatabaseServer = "THESERVER"
$farm.Prefix = "DEV_"
$farm.DefaultUrlDomain = ".sp2010.dev"
$farm.CustomUrlDomain = ".sp2010.custom";
$farm.ExtranetUrlDomain = ".sp2010.extranet";
$farm.InternetUrlDomain = ".sp2010.dev";
$farm.IntranetUrlDomain = ".sp2010.intranet";

$farm.Diagnostics.LogLocation = "C:\mosslogs"
# -----------------------------------------------------------------
# Environment information for Support application
# -----------------------------------------------------------------
$supportApp.SC.Visitors = @()
$supportApp.SC.Members = @()
$supportApp.SC.Owners = @()
$supportApp.SC.PrimaryOwner = "sp2010\administrator"
$supportApp.SC.SecondaryOwner = ""
$supportApp.Pool.Account = "sp2010\spWebApplication"
$supportApp.DB.Server = $farm.DatabaseServer
$supportApp.DB.FilePath = "C:\databases"
$supportApp.DB.FileSize = "500MB"
$supportApp.DB.LogPath = "C:\databases"
$supportApp.DB.LogSize = "50MB"
$supportApp.SuperUserAccount = "sp2010\spPortalSuperUser"
$supportApp.SuperReaderAccount = "sp2010\spPortalSuperReader"
$supportApp.BlobCache.Location = "c:\BlobCache\Support"
# -----------------------------------------------------------------
# Environment information for My Site application
# -----------------------------------------------------------------
$mySiteApp.SC.Visitors = @()
$mySiteApp.SC.Members = @()
$mySiteApp.SC.Owners = @()
$mySiteApp.SC.PrimaryOwner = "sp2010\administrator"
$mySiteApp.SC.SecondaryOwner = ""
$mySiteApp.Pool.Account = "sp2010\spWebApplication"
$mySiteApp.DB.Server = $farm.DatabaseServer
$mySiteApp.DB.FilePath = "C:\databases"
$mySiteApp.DB.FileSize = "500MB"
$mySiteApp.DB.LogPath = "C:\databases"
$mySiteApp.DB.LogSize = "50MB"
$mySiteApp.SuperUserAccount = "sp2010\spPortalSuperUser"
$mySiteApp.SuperReaderAccount = "sp2010\spPortalSuperReader"
$mySiteApp.BlobCache.Location = "c:\BlobCache\MySite"
# -----------------------------------------------------------------
# Environment information for Publishing application
# -----------------------------------------------------------------
$publishingApp.SC.Visitors = @()
$publishingApp.SC.Members = @()
$publishingApp.SC.Owners = @()
$publishingApp.SC.PrimaryOwner = "sp2010\administrator"
$publishingApp.SC.SecondaryOwner = ""
$publishingApp.Pool.Account = "sp2010\spWebApplication"
$publishingApp.DB.Server = $farm.DatabaseServer
$publishingApp.DB.FilePath = "C:\databases"
$publishingApp.DB.FileSize = "500MB"
$publishingApp.DB.LogPath = "C:\databases"
$publishingApp.DB.LogSize = "50MB"
$publishingApp.SuperUserAccount = "sp2010\spPortalSuperUser"
$publishingApp.SuperReaderAccount = "sp2010\spPortalSuperReader"
$publishingApp.BlobCache.Location = "c:\BlobCache\Publishing"
# -----------------------------------------------------------------
# Environment information for Collaboration application
# -----------------------------------------------------------------
$collaborationApp.SC.Visitors = @()
$collaborationApp.SC.Members = @()
$collaborationApp.SC.Owners = @()
$collaborationApp.SC.PrimaryOwner = "sp2010\administrator"
$collaborationApp.SC.SecondaryOwner = ""
$collaborationApp.Pool.Account = "sp2010\spWebApplication"
$collaborationApp.DB.Server = $farm.DatabaseServer
$collaborationApp.DB.FilePath = "C:\databases"
$collaborationApp.DB.FileSize = "500MB"
$collaborationApp.DB.LogPath = "C:\databases"
$collaborationApp.DB.LogSize = "50MB"
$collaborationApp.SuperUserAccount = "sp2010\spPortalSuperUser"
$collaborationApp.SuperReaderAccount = "sp2010\spPortalSuperReader"
$collaborationApp.BlobCache.Location = "c:\BlobCache\Collaboration"
# -----------------------------------------------------------------
# Environment information for Search application
# -----------------------------------------------------------------
$searchApp.SC.Visitors = @()
$searchApp.SC.Members = @()
$searchApp.SC.Owners = @()
$searchApp.SC.PrimaryOwner = "sp2010\administrator"
$searchApp.SC.SecondaryOwner = ""
$searchApp.Pool.Account = "sp2010\spWebApplication"
$searchApp.DB.Server = $farm.DatabaseServer
$searchApp.DB.FilePath = "C:\databases"
$searchApp.DB.FileSize = "500MB"
$searchApp.DB.LogPath = "C:\databases"
$searchApp.DB.LogSize = "50MB"
$searchApp.SuperUserAccount = "sp2010\spPortalSuperUser"
$searchApp.SuperReaderAccount = "sp2010\spPortalSuperReader"
$searchApp.BlobCache.Location = "c:\BlobCache\Search"
# -----------------------------------------------------------------
# Environment information for Record Center application
# -----------------------------------------------------------------
$recordCenterApp.SC.Visitors = @()
$recordCenterApp.SC.Members = @()
$recordCenterApp.SC.Owners = @()
$recordCenterApp.SC.PrimaryOwner = "sp2010\administrator"
$recordCenterApp.SC.SecondaryOwner = ""
$recordCenterApp.Pool.Account = "sp2010\spWebApplication"
$recordCenterApp.DB.Server = $farm.DatabaseServer
$recordCenterApp.DB.FilePath = "C:\databases"
$recordCenterApp.DB.FileSize = "500MB"
$recordCenterApp.DB.LogPath = "C:\databases"
$recordCenterApp.DB.LogSize = "50MB"
$recordCenterApp.SuperUserAccount = "sp2010\spPortalSuperUser"
$recordCenterApp.SuperReaderAccount = "sp2010\spPortalSuperReader"
$recordCenterApp.BlobCache.Location = "c:\BlobCache\RecordCenter"
# -----------------------------------------------------------------
# Environment information for Access service
# -----------------------------------------------------------------
$accessSvc.Pool.Account = "sp2010\spServiceApplication"
# -----------------------------------------------------------------
# Environment information for BCS service
# -----------------------------------------------------------------
$bcsSvc.Pool.Account = "sp2010\spServiceApplication"
$bcsSvc.DB.Server = $farm.DatabaseServer
$bcsSvc.DB.FilePath = "C:\databases"
$bcsSvc.DB.FileSize = "100MB"
$bcsSvc.DB.LogPath = "C:\databases"
$bcsSvc.DB.LogSize = "50MB"
# -----------------------------------------------------------------
# Environment information for Excel service
# -----------------------------------------------------------------
$excelSvc.Pool.Account = "sp2010\spServiceApplication"
$excelSvc.WorkbookCache = "C:\workbookCache"
# -----------------------------------------------------------------
# Environment information for Metadata service
# -----------------------------------------------------------------
$metadataSvc.Pool.Account = "sp2010\spServiceApplication"
$metadataSvc.DB.Server = $farm.DatabaseServer
$metadataSvc.DB.FilePath = "C:\databases"
$metadataSvc.DB.FileSize = "100MB"
$metadataSvc.DB.LogPath = "C:\databases"
$metadataSvc.DB.LogSize = "50MB"
$metadataSvc.Hub.PrimaryOwner = $supportApp.SC.PrimaryOwner
# -----------------------------------------------------------------
# Environment information for PerformancePoint service
# -----------------------------------------------------------------
$ppSvc.Pool.Account = "sp2010\spServiceApplication"
$ppSvc.DB.Server = $farm.DatabaseServer
$ppSvc.DB.FilePath = "C:\databases"
$ppSvc.DB.FileSize = "100MB"
$ppSvc.DB.LogPath = "C:\databases"
$ppSvc.DB.LogSize = "50MB"

# -----------------------------------------------------------------
# Environment information for PowerPoint service
# -----------------------------------------------------------------
$pptSvc.Pool.Account = "sp2010\spServiceApplication"
$pptSvc.CachePath = "c:\PowerPointCache"
# -----------------------------------------------------------------
# Environment information for Search service
# -----------------------------------------------------------------
$searchSvc.Pool.Account = "sp2010\spServiceApplication"
$searchSvc.AdminPool.Account = "sp2010\spServiceApplication"
$searchSvc.ContentAccessAccount = "sp2010\spSearchCrawler"
$searchSvc.ServiceAccount = "sp2010\spSearchService";
$searchSvc.ContactEmail = "SearchTeam@sp2010.com"
$searchSvc.IndexLocation = "c:\searchIndex"
$searchSvc.SearchDB.FilePath = "C:\databases"
$searchSvc.SearchDB.FileSize = "500MB"
$searchSvc.SearchDB.LogPath = "C:\databases"
$searchSvc.SearchDB.LogSize = "50MB"
$searchSvc.SearchDB.Server = $farm.DatabaseServer
$searchSvc.CrawlDB.FilePath = "C:\databases"
$searchSvc.CrawlDB.FileSize = "500MB"
$searchSvc.CrawlDB.LogPath = "C:\databases"
$searchSvc.CrawlDB.LogSize = "50MB"
$searchSvc.CrawlDB.Server = $farm.DatabaseServer
$searchSvc.QueryDB.FilePath = "C:\databases"
$searchSvc.QueryDB.FileSize = "500MB"
$searchSvc.QueryDB.LogPath = "C:\databases"
$searchSvc.QueryDB.LogSize = "50MB"
$searchSvc.QueryDB.Server = $farm.DatabaseServer

# -----------------------------------------------------------------
# Environment information for Secure Store service
# -----------------------------------------------------------------
$secureStoreSvc.Pool.Account = "sp2010\spServiceApplication"
$secureStoreSvc.DB.Server = $farm.DatabaseServer
$secureStoreSvc.DB.FilePath = "C:\databases"
$secureStoreSvc.DB.FileSize = "100MB"
$secureStoreSvc.DB.LogPath = "C:\databases"
$secureStoreSvc.DB.LogSize = "50MB"
$secureStoreSvc.Passphrase = "SharePoint2010"
# -----------------------------------------------------------------
# Environment information for State service
# -----------------------------------------------------------------
$stateSvc.DB.Server = $farm.DatabaseServer
$stateSvc.DB.FilePath = "C:\databases"
$stateSvc.DB.FileSize = "100MB"
$stateSvc.DB.LogPath = "C:\databases"
$stateSvc.DB.LogSize = "50MB"
# -----------------------------------------------------------------
# Environment information Usage Service
# -----------------------------------------------------------------
$usageSvc.DB.Server = $farm.DatabaseServer
$usageSvc.DB.FilePath = "C:\databases"
$usageSvc.DB.FileSize = "100MB"
$usageSvc.DB.LogPath = "C:\databases"
$usageSvc.DB.LogSize = "50MB"
$usageSvc.LogLocation = $farm.Diagnostics.LogLocation

# -----------------------------------------------------------------
# Environment information User Profile Service
# -----------------------------------------------------------------
$userProfileSvc.Pool.Account = "sp2010\spServiceApplication"
$userProfileSvc.ProfileDB.Server = $farm.DatabaseServer
$userProfileSvc.ProfileDB.FilePath = "C:\databases"
$userProfileSvc.ProfileDB.FileSize = "100MB"
$userProfileSvc.ProfileDB.LogPath = "C:\databases"
$userProfileSvc.ProfileDB.LogSize = "50MB"
$userProfileSvc.SocialDB.Server = $farm.DatabaseServer
$userProfileSvc.SocialDB.FilePath = "C:\databases"
$userProfileSvc.SocialDB.FileSize = "100MB"
$userProfileSvc.SocialDB.LogPath = "C:\databases"
$userProfileSvc.SocialDB.LogSize = "50MB"
$userProfileSvc.SyncDB.Server = $farm.DatabaseServer
$userProfileSvc.SyncDB.FilePath = "C:\databases"
$userProfileSvc.SyncDB.FileSize = "100MB"
$userProfileSvc.SyncDB.LogPath = "C:\databases"
$userProfileSvc.SyncDB.LogSize = "50MB"
# -----------------------------------------------------------------
# Environment information for Visio service
# -----------------------------------------------------------------
$visioSvc.Pool.Account = "sp2010\spServiceApplication"
# -----------------------------------------------------------------
# Environment information for Web Analytics service
# -----------------------------------------------------------------
$analyticsSvc.Pool.Account = "sp2010\spServiceApplication"
$analyticsSvc.StagingDB.Server = $farm.DatabaseServer
$analyticsSvc.StagingDB.FilePath = "C:\databases"
$analyticsSvc.StagingDB.FileSize = "100MB"
$analyticsSvc.StagingDB.LogPath = "C:\databases"
$analyticsSvc.StagingDB.LogSize = "50MB"
$analyticsSvc.ReportingDB.Server = $farm.DatabaseServer
$analyticsSvc.ReportingDB.FilePath = "C:\databases"
$analyticsSvc.ReportingDB.FileSize = "100MB"
$analyticsSvc.ReportingDB.LogPath = "C:\databases"
$analyticsSvc.ReportingDB.LogSize = "50MB"
# -----------------------------------------------------------------
# Environment information for Word Automation service
# -----------------------------------------------------------------
$wordAutomationSvc.Pool.Account = "sp2010\spServiceApplication"
$wordAutomationSvc.DB.Server = $farm.DatabaseServer
$wordAutomationSvc.DB.FilePath = "C:\databases"
$wordAutomationSvc.DB.FileSize = "100MB"
$wordAutomationSvc.DB.LogPath = "C:\databases"
$wordAutomationSvc.DB.LogSize = "50MB"
# -----------------------------------------------------------------
# Environment information for Word Viewing service
# -----------------------------------------------------------------
$wordViewingSvc.Pool.Account = "sp2010\spServiceApplication"
$wordViewingSvc.LocalCacheStoreDirectory = "C:\WordViewingCache"

# -----------------------------------------------------------------
# Set values that depend on values that are calculated per environment
# -----------------------------------------------------------------
$mySiteApp.SearchBox.Url = $searchApp.DefaultZone.AbsoluteUrl
$supportApp.SearchBox.Url = $searchApp.DefaultZone.AbsoluteUrl
$publishingApp.SearchBox.Url = $searchApp.DefaultZone.AbsoluteUrl
$collaborationApp.SearchBox.Url = $searchApp.DefaultZone.AbsoluteUrl
$recordCenterApp.SearchBox.Url = $searchApp.DefaultZone.AbsoluteUrl
$searchApp.SearchBox.Url = $searchApp.DefaultZone.AbsoluteUrl

# -----------------------------------------------------------------
# Load the command mapper
# -----------------------------------------------------------------
. .\MGL.Commands.ps1 
